<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
String age = new String(request.getParameter("age").getBytes("ISO-8859-1"),"UTF-8");
String str = "\\d{1,3}";		//age限定为1~3位数字
if(!age.matches(str)){
	out.println("<span id = 'w4'><font color = red>Age only for less than 3 digits!</font></span>");
}else{
	out.println("<span id='w4'><font color = green>Age is available!</font></span>");
}
%>